<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<System.String>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	List of Tables
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		List of Tables</h2>
	<table>
		<tr>
			<th>
			</th>
			<th>
				Name
			</th>
		</tr>
		<% foreach (var item in Model)
		 { 
		%>
		<tr>
			<td>
				<%= Html.ActionLink("Select", "Rows", new { storageId = ViewData["storageId"], storageBoxId = item})%>
				|
				<%= Html.ActionLink("Delete", "TableDelete", new { storageId = ViewData["storageId"], storageBoxId = item }, new { onclick = "return confirm('Are you sure?')" })%>
			</td>
			<td>
				<%= Html.Encode(item) %>
			</td>
		</tr>
		<%} %>
	</table>
		<p>
		<%= Html.ActionLink("Add New Table", "TableCreate", new { storageId = ViewData["storageId"]})%>
		|
		<%= Html.ActionLink("Close", "List", "AzureStorage")%>
	</p>
</asp:Content>
